package com.tanhua.model.vo;

import com.tanhua.model.domain.PersonalityType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 查询灵魂测试报告前端响应数据
 * @Description：test
 * @Create by： 张会豪
 * @Date：2021/11/9 9:15
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SoulReportVo implements Serializable {

    private String conclusion;//鉴定结果
    private String cover;//鉴定图片
    private List<SoulReportVoo> dimensions;//维度
    private List<SoulReportVoo> similarYou;//与你相似

    public static SoulReportVo init(PersonalityType personalityType) {
        SoulReportVo vo = new SoulReportVo();
        //鉴定结果conclusion
        vo.setConclusion(personalityType.getDescription());
        //设置cover属性值 string
        vo.setCover(personalityType.getCover());
        return vo;
    }
}
